package com.ruoyi.shop.service.impl;

import com.ruoyi.common.core.constant.SecurityConstants;
import com.ruoyi.system.api.RemoteUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.shop.mapper.UserMapper;
import com.ruoyi.shop.domain.User;
import com.ruoyi.shop.service.IUserService;

/**
 * 客服信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-08-06
 */
@Service
public class UserServiceImpl implements IUserService 
{
    @Autowired
    private RemoteUserService remoteUserService;

    /**
     * 查询客服信息
     * 
     * @param userName 客服信息主键
     * @return 客服信息
     */
    @Override
    public Object selectUserByUserName(String userName)
    {
        return remoteUserService.getUserInfo(userName, SecurityConstants.INNER);
    }

}
